<?php

require_once "core/application/models/musers/musers5.php";

class Musers6 extends Musers5 {
    


    private $_query;

    protected function getFriendPlayerId($nick) {
        /**
         *  Получаем ID "друга"
         * @return ID друга
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `id` FROM `players` WHERE `name` = '$nick'";
        $fetch = mysql_fetch_assoc(DB::getInstance()->sql($this->_query));
        return $fetch['id'];
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }
}
?>
